package com.xueyu.domain.finance;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

@Data
@TableName("finance")
public class financeBean implements Serializable {

    @TableId("financeId")
    private int financeId;

    @TableField("paidMonth")
    private String paidMonth;

    @TableField("personId")
    private int personId;

    @TableField("stayMoney")
    private float stayMoney;

    @TableField("paidType")
    private int paidType;

    @TableField("feeProjId")
    private int feeProjId;

    @TableField("modeofpayment")
    private String modeofpayment;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("paidDate")
    private String paidDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("expireDate")
    private String expireDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("operTime")
    private String operTime;

    @TableField("operator")
    private String operator;

    @TableField("finaceremark")
    private String finaceremark;

    @TableField(exist = false)
    private String MaxExpireDate;

    @TableField(exist = false)
    private String realName;

    public String getMaxExpireDate() {
        return MaxExpireDate;
    }

    public void setMaxExpireDate(String maxExpireDate) {
        MaxExpireDate = maxExpireDate;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    @Override
    public String toString() {
        return "financeBean{" +
                "MaxExpireDate='" + MaxExpireDate + '\'' +
                ", realName='" + realName + '\'' +
                '}';
    }
}
